home *** CD-ROM | disk | FTP | other *** search
- ; Searches the CD.index file for a specified string
-
- set OutFile "RAM:CUCDindex"
-
- Version >NIL: version 37
- if WARN
- echo ""
- echo "You need at least version 2.04 of the operating system to run SearchIndex"
- quit
- endif
-
- set all `RequestChoice "Index search" "Search this CD or all CUCDs?" "This CD|All CDs|Cancel"`
- if $all EQ 0
- quit
- endif
-
- unset str
- set str `:C/RequestString TITLE "Search CD Index" BODY "Please enter the string to search for"`
- get >NIL: str
- if WARN
- quit
- endif
-
- :C/FlashFind :CDsupport/CUCD.index "$str" >$OutFile NOPREFS QUIET
- if $all EQ 2
- :C/FlashFind :CDsupport/indices/#? "$str" >>$OutFile NOPREFS QUIET
- endif
-
- if `List $OutFile lformat "%B"` EQ "empty"
- RequestChoice >NIL: "Index search" "No matches found for *"$str*"" "OK"
- else
- Version >NIL: version 39
- if WARN
- AmigaGuide $OutFile
- else
- MultiView $OutFile
- endif
- endif
-
- delete >NIL: $OutFile
- unset str
- unset all
- unset OutFile
-
-